from langchain_core.prompts import (
    ChatPromptTemplate
)
from langchain_openai import ChatOpenAI

prompt = ChatPromptTemplate.from_template("tell me a joke about {topic}")
model = ChatOpenAI()

model.bind(function_call = {})

chain = prompt | model

response = chain.invoke({"topic": "bears"})
print(response)